package com.mayday.system.domain;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@TableName("approval_template")
@ApiModel(value = "ApprovalTemplate", description = "审核模板实体")
public class ApprovalTemplate {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键ID")
    private Long id;

    @ApiModelProperty(value = "审批单名称")
    private String templateName;

    @ApiModelProperty(value = "字段设置(JSON格式)")
    private String fieldSettings;

    @ApiModelProperty(value = "审批单类型(1-6)")
    private Integer templateType;

    @ApiModelProperty(value = "高级设置")
    private String advancedSettings;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "创建人ID")
    @TableField(fill = FieldFill.INSERT)
    private String createUserId;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "修改人ID")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateUserId;

    @TableField(exist = false)
    @ApiModelProperty(value = "审批流程列表")
    private List<ApprovalFlow> approvalFlows;
}